using System;
using System.IO;
using System.Text.RegularExpressions;
using Drifter.Core;
using System.Collections.Generic;
using System.Collections;

namespace Drifter.Datasource
{

    public class MockDataSink : IDataSink
    {

        public string Separator = "|_|";
        public IList<string> Imorted = new List<string>();
        public bool Active { get; set; }

        /// <summary>
        /// Takes the specified data.
        /// </summary>
        /// <param name="data">The data.</param>
        public void Take(FieldList data)
        {
            string values = string.Empty;
            foreach (FieldDef fieldDef in data)
            {
                if (values == string.Empty)
                {
                    values = fieldDef.Value.ToString();
                }
                else
                {
                    values = values + this.Separator + fieldDef.Value;
                }
            }
            this.Imorted.Add(values);
        }


    }
}


